package com.yhsimon.state;

/**
 * @author： YHSimon
 * @date： 2021-10-23 13:29
 */
public class Client {
    public static void main(String[] args) {
        //创建活动对象，奖品池有1个奖品
        RaffleActivity raffleActivity = new RaffleActivity(1);

        for (int i = 0; i < 300; i++) {
            System.out.println("-----第"+(i+1)+"次抽奖-----");
            raffleActivity.deductMoney();

            raffleActivity.raffle();
        }
    }
}
